home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-02-03 | 1.3 KB | 22 lines | [TEXT/ttxt] |
- Embedding ICC Profiles in JFIF Files
-
- The JPEG standard (ISO DIS 10918-1) supports application specific data
- segments. These segments may be used for tagging images with ICC profiles.
- The APP2 marker is used to introduce the tag. Given that there are only 15
- supported APP markers, there is a chance of many applications using the same
- marker. ICC tags are thus identified by beginning the data with a special null
- terminated byte sequence, "ICC_PROFILE".
-
- The length field of a JPEG marker is only two bytes long; the length of the length
- field is included in the total. Hence, the values 0 and 1 are not legal lengths. This
- would limit maximum data length to 65533. The identification sequence would
- lower this even further. As it is quite possible for an ICC profile to be longer
- than this, a mechanism must exist to break the profile into chunks and place
- each chunk in a separate marker. A mechanism to identify each chunk in
- sequence order would thus be useful.
-
- The identifier sequence is followed by one byte indicating the sequence number
- of the chunk (counting starts at 1) and one byte indicating the total number of
- chunks. All chunks in the sequence must indicate the same total number of
- chunks. The one-byte chunk count limits the size of embeddable profiles to
- 16,707,345 bytes.